package com.acmen.demo.enums;


import com.acmen.easyapi.annotation.EnumDesc;
import com.acmen.easyapi.annotation.EnumValue;

public enum DemoEnum {

    TEST1("100000", "调用成功"),
    TEST2("370000", "远程调用失败");

    DemoEnum(String code) {
        this.code = code;
    }

    DemoEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }
    @EnumValue
    private String code;
    @EnumDesc
    private String desc;


    public String getCode() {
        return this.code;
    }


    public String getDesc() {
        return this.desc;
    }

}
